import request from "@/utils/request";

// 查询奖惩管理列表
export function listCldRewards(query) {
  return request({
    url: "/cld/CldRewards/list",
    method: "get",
    params: query,
  });
}

// 查询奖惩管理详细
export function getCldRewards(rewardsId) {
  return request({
    url: "/cld/CldRewards/" + rewardsId,
    method: "get",
  });
}

// 新增奖惩管理
export function addCldRewards(data) {
  return request({
    url: "/cld/CldRewards",
    method: "post",
    data: data,
  });
}

// 修改奖惩管理
export function updateCldRewards(data) {
  return request({
    url: "/cld/CldRewards",
    method: "put",
    data: data,
  });
}

// 审核
export function auditCldRewards(data) {
  return request({
    url: "/cld/CldRewards/audit",
    method: "put",
    data: data,
  });
}

// 删除奖惩管理
export function delCldRewards(rewardsId) {
  return request({
    url: "/cld/CldRewards/" + rewardsId,
    method: "delete",
  });
}
